home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
spline11
/
vblib.bas
< prev
Wrap
BASIC Source File
|
1995-08-31
|
464b
|
17 lines
'Copyright (C) Andrew S. Dean 1993-95
Option Explicit
Sub CenterForm (F As Form)
' Center the specified form within the screen
F.Move (Screen.Width - F.Width) \ 2, (Screen.Height - F.Height) \ 2
End Sub ' CenterForm()
Sub UnloadOnEscape (KeyAscii As Integer)
' Escape Key disables all dialogs.
' This relies on KeyPreview being set for the form.
If (KeyAscii = KEY_ESCAPE) Then
Unload Screen.ActiveForm
End If
End Sub